<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_ctl00_Head1">
<title>CSDN博客 | 写博客</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_cookie.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_common.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_menu.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_ajax.js"></script>

<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_face.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_manage.js"></script>
<link rel="shortcut icon"
	href="http://beta.hi.csdn.net/image/favicon.ico" />
<link rel="Stylesheet" type="text/css"
	href="http://hi.images.csdn.net/css/print.css" media="print" />
<link rel="Stylesheet" type="text/css"
	href="http://hi.images.csdn.net/css/blog/styles.css"
	media="screen, projection" />
<script src="http://hi.images.csdn.net/js/public/CommonNew.js"
	type="text/javascript"></script>
<script src="http://hi.images.csdn.net/js/public/jquery-1.2.3.pack.js"
	type="text/javascript"></script>


<!-- TinyMCE -->
<script type="text/javascript"
	src="http://hi.images.csdn.net/js/blog/SyntaxHighlighter/jquery.highlighter.js"></script>

<script type="text/javascript"
	src="http://hi.images.csdn.net/js/blog/SyntaxHighlighter/highlighter.js"></script>
<script type="text/javascript"
	src="http://hi.images.csdn.net/js/blog/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
    tinyMCE.init({
        mode: "textareas",
        editor_selector: "mceEditor",
        theme: "advanced",
        plugins: "syntaxhl,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,iespell,insertdatetime,preview,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,inlinepopups",
        // Theme options
        theme_advanced_buttons1: "styleprops,formatselect,fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,forecolor,backcolor",
        theme_advanced_buttons2: "advhr,|,newdocument,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,syntaxhl,|,hr,removeformat,visualaid,|,sub,sup,|,insertdate,inserttime,preview,|,fullscreen",
        theme_advanced_buttons3: "",
        theme_advanced_buttons4: "",
        theme_advanced_toolbar_location: "top",
        theme_advanced_toolbar_align: "left",
        theme_advanced_statusbar_location: "bottom",
        theme_advanced_resizing: true,
        remove_linebreaks: false,
        extended_valid_elements: "textarea[cols|rows|disabled|name|readonly|class]",
        content_css: "http://hi.images.csdn.net/js/blog/tiny_mce/css/word.css",
        language: "zh"
    });
    function InsertImg(imgHtml) {
        tinyMCE.execCommand('mceInsertContent', false, imgHtml);
    }
    $(document).ready(function() {
        window.onbeforeunload = function() {
            try {
                return "请确认你的文章是否已保存。";
            } catch (e) { }
        }
    });
</script>

<script type="text/javascript" src="js/autosave.js?v=20091222"></script>
<link rel="Stylesheet" type="text/css" href="css/autosave.css"
	media="screen, projection" />
<!-- /TinyMCE -->

</head>
<body id="home">
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/js/header.php"></script>

<form method="post" action="articleManage/articleManager!update">
<input type="hidden" name="article.id" value="<s:property value="article.id"/>" />
<div><input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS"
	value="" /> <input type="hidden" name="__EVENTTARGET"
	id="__EVENTTARGET" value="" /> <input type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IDlj5EG5rGH57yWD+i9r+W3peS4jueuoeeQhhXnvZHnu5zkuI7ns7vnu5/nrqHnkIYG57u85ZCIGOS4jeaOqOiNkOWIsOWIhuexu+mmlumhtRUNAjkxAjM1AjM2AjQ2AjgwAjQ3AjUxAjUzAjQ0AjU2AjU4AjQ1ABQrAw1nZ2dnZ2dnZ2dnZ2dnZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgQFOWN0bDAwJGN0bDAwJGNwaENvbnRlbnQkY3BoRG9jJEVudHJ5RWRpdG9yMSRDYXRlZ29yeUxpc3QkMAU5Y3RsMDAkY3RsMDAkY3BoQ29udGVudCRjcGhEb2MkRW50cnlFZGl0b3IxJENhdGVnb3J5TGlzdCQxBTljdGwwMCRjdGwwMCRjcGhDb250ZW50JGNwaERvYyRFbnRyeUVkaXRvcjEkQ2F0ZWdvcnlMaXN0JDEFOmN0bDAwJGN0bDAwJGNwaENvbnRlbnQkY3BoRG9jJEVudHJ5RWRpdG9yMSRjYlNlbGZSZWNvbW1lbmSsfjTlBBpqlgWWEAVTViq9OIVGTw==" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['ctl00$ctl00$form1'];
if (!theForm) {
    theForm = document.ctl00$ctl00$form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script> <script
	src="/WebResource.axd?d=KI5BlEWgv_0cLMWql-513w2&amp;t=633912995661742500"
	type="text/javascript"></script> <script
	src="/WebResource.axd?d=Unirsl6iLVv7ayoJPIXb2aqvE95tWli4_yguQahtkFFVz5G2Q-EezRK65k4MVWHPmudJTAaj7P1rCycFuXMAlQ2&amp;t=633927690557500000"
	type="text/javascript"></script> <script type="text/javascript">
//<![CDATA[
WebForm_InitPostBack();
//]]>
</script> <script
	src="/WebResource.axd?d=4ki3TmEPNjG59vIp2SRg_Qnn55yzB8GYcYPvkXeUV6I1&amp;t=633912995661742500"
	type="text/javascript"></script> <script
	src="/WebResource.axd?d=1QtfwVAeWsOfzih9M0s2jA2&amp;t=633912995661742500"
	type="text/javascript"></script> <script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (!theForm.__EVENTTARGET.value) return false;
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
if (WebForm_IsCallback() != false) {
    WebForm_PreDoCallback(theForm.__EVENTTARGET.value);
    WebForm_DoCallback('ctl00$ctl00$form1',theForm.__EVENTTARGET.value,WebForm_EndCallback,theForm.__EVENTTARGET.value,WebForm_ErrorCallback,true);
    return false;
};

return true;
}
//]]>
</script>

<div><input type="hidden" name="__EVENTVALIDATION"
	id="__EVENTVALIDATION"
	value="/wEWHQLkw4izAwKggpaRDAK596M/At/LuMwFAq6Wiz0Cp7Kk7QcCprKk7QcChdyM4gICx83egAYC24mOowEC1rqRhA4C4by28woC7ZqIrAICt6i96gMCraiN6gMCraiJ6gMCrKiJ6gMCuKix6gMCrKiV6gMCq6i96gMCq6iF6gMCrKiB6gMCq6iJ6gMCq6jR6QMCrKiN6gMCoMfbhw8CoMfbhw8C0byM8Q8Cg77dzAgfmFwPtcb3sNvjLiKMLIRNwU6LnQ==" />
</div>

<div id="wrap">
<div id="body">
<div id="toppanel">


<div id="location" class="userlocation"><a
	href='http://hi.csdn.net/ph9527/'> <img
	src='http://avatar.csdn.net/p/ph9527/3' alt='ph9527' class="avatar" /></a>
<h3>博客管理</h3>

<span><a href="PostList.aspx">文章管理</a> &#92; 写文章<a
	style="float: right; color: Red"
	href="http://blog.csdn.net/blogdevteam/archive/2009/09/04/4519285.aspx"
	target="_blank">如何使用客户端写博客？</a></span></div>


<hr class="hide" />




</div>
<hr class="hide clear" />

<div id="blogcontent">

<div id="doc">



<fieldset><legend>写新文章</legend>
<dl>
	<dt>文章类型：</dt>
	<dd class="inputlist-flow"><span
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_rblOri"><input
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_rblOri_0" type="radio"
		name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$rblOri" value="ori" /><label
		for="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_rblOri_0">原创</label><input
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_rblOri_1" type="radio"
		name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$rblOri" value="copy"
		checked="checked" /><label
		for="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_rblOri_1">转贴</label><input
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_rblOri_2" type="radio"
		name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$rblOri" value="tran" /><label
		for="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_rblOri_2">翻译</label></span></dd>
	<dt>文章分类：<span class="right">[&nbsp;<a
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_hlEditCategories"
		href="EditCategories.aspx?catID=1">管理分类…</a>&nbsp;]</span></dt>
	<dd class="inputlist-flow"><span
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_CategoryList"><input
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_CategoryList_0"
		type="checkbox"
		name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$CategoryList$0" /><label
		for="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_CategoryList_0">J2EE项目乱码问题</label><input
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_CategoryList_1"
		type="checkbox"
		name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$CategoryList$1" /><label
		for="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_CategoryList_1">maven配置</label></span>
	</dd>
	<dt style="display: none;">Tag：</dt>

	<dd style="display: none;"><input
		name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$txbTags" type="text"
		maxlength="200"
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_txbTags"
		class="textbox" /></dd>
	<dt>文章标题： <span
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired"
		style="color: Red; display: none;">必须输入标题</span></dt>
	<dd><input name="article.title" type="text"
		value="<s:property value="article.title"/>" maxlength="200"
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_txbTitle" tabindex="1"
		class="textbox" /></dd>

	<dt>文章正文： <span class="autosaveinfo" id="autosaveinfo">正文已于<em
		class="created"></em>自动保存。</span><span class="autosaveinfo"><a
		onclick="OpenAutosaveWin()">暂存箱</a><a onclick="AddAutosave()">保存</a></span></dt>
	<dd><textarea style="display: none;" id="shadowEditor"
		name="shadowEditor"></textarea> <textarea
		name="article.description"
		rows="2" cols="20"
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_richTextEditor"
		class="mceEditor" style="height: 450px; width: 100%;"> 
             <s:property value="article.description" />
            </textarea></dd>

	<dt>图片上传功能暂时关闭，敬请谅解。</dt>
	<dt style="display: none">图片上传：</dt>
	<dd style="display: none"><iframe
		id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_Upload_IFrame"
		width="100%" height="50px" frameborder="0" scrolling="no"
		src="/Utility/UploadImages.aspx?id=5182492"
		name="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_Upload_IFrame"></iframe>
	<div style="color: Red;">注：单个图片文件不能超过 2M，且必须是有效的图片格式(gif, jpg,
	png)。</div>
	</dd>

	<div class="submit" style="display: none"><input type="button"
		name="" /></div>
	<dt>文章摘要：</dt>
	<dd><textarea name="" rows="5" cols="20" id="" class="textbox">文章摘要：</textarea>
	</dd>
	<script type="text/javascript">
            var ChannelId = '0';
            var RecommendCount = '1';
            $(document).ready(function() {
                if (RecommendCount > 0 && ChannelId == 0) {
                    $(".recommend_index").show();
                    $(".recommend_index").find(":checkbox").click(function() {
                        if (this.checked) {
                            $("input[name='ChannelId']").removeAttr("disabled");
                        }
                        else {
                            $("input[name='ChannelId']").attr("disabled", "disabled");
                        }
                    });
                }
            });
        </script>

	<dd class="recommend_index" style="display: none">
	<ul>
		<li class="title"><input
			name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$cbSelfRecommend"
			type="checkbox"
			id="ctl00_ctl00_cphContent_cphDoc_EntryEditor1_cbSelfRecommend"
			style="vertical-align: middle;" /> 推荐到首页</li>

		<li><input type="radio" style="vertical-align: middle;" value='1'
			name="ChannelId" disabled="disabled" /> 业界</li>


		<li><input type="radio" style="vertical-align: middle;" value='2'
			name="ChannelId" disabled="disabled" /> 开发技术</li>

		<li><input type="radio" style="vertical-align: middle;" value='3'
			name="ChannelId" disabled="disabled" /> 生活职场</li>

		<li><input type="radio" style="vertical-align: middle;" value='4'
			name="ChannelId" disabled="disabled" /> 产品工具</li>

	</ul>
	<p>本周你还有 <em>1</em> 次推荐机会！推荐的文章经审核后择优发布到博客首页；广告内容将被直接删除，请谨慎使用！<span><a
		class="red"
		href="http://blog.csdn.net/blogdevteam/archive/2010/01/07/5151993.aspx"
		target="_blank">推荐规则</a></span></p>
	</dd>
	 
</dl>
<hr class="hide" />
<div class="submit clear"><script type="text/javascript">
            function checkContent() {
                if (!(new RegExp("[^\s]").test(tinyMCE.activeEditor.getContent()))) {
                    alert("请输入正文。");
                    return false;
                }
                else {
                    $("#shadowEditor").val(tinyMCE.activeEditor.getContent());
                }
                window.onbeforeunload = null;
                DeleteAutosave();
                return true;
            }
        </script> <input type="submit"
	name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$SaveButton"
	value="发表文章" class="defaultbutton" /> <input type="submit"
	name="ctl00$ctl00$cphContent$cphDoc$EntryEditor1$SaveToDraftButton"
	value="另存为草稿" class="button" /> <input type="button" class="button"
	onclick="javascript:Back()" value="取消" /></div>
</fieldset>
<div id="autosave">
<dl>
	<dt><span> <img src="images/close.gif"
		onclick="CloseAutosaveWin()"></span><em>暂存箱</em> 暂存的内容每隔30秒更新一次</dt>
	<dd class="cont">保存时间：<em class="created"></em><br />
	<textarea readonly></textarea>
	<div class="conts" id="autosaveText"></div>

	注：暂存的内容只能恢复到当前文章的编辑器中，如需恢复到其他文章中，请编辑该文章并从暂存箱中恢复；或者直接复制以上内容，手工恢复到相关文章。</dd>
	<dd class="btnbg"><input class="defaultbutton" type="button"
		value="恢复到编辑器" name="Button" onclick="RecoverAutosave()" /> <input
		class="defaultbutton" type="button" value="取消" name="Button"
		onclick="CloseAutosaveWin()" /></dd>
</dl>
</div>


</div>

</div>
</div>
</div>

<script type="text/javascript">
//<![CDATA[
var Page_Validators =  new Array(document.getElementById("ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired"));
//]]>
</script> <script type="text/javascript">
//<![CDATA[
var ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired = document.all ? document.all["ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired"] : document.getElementById("ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired");
ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired.controltovalidate = "ctl00_ctl00_cphContent_cphDoc_EntryEditor1_txbTitle";
ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired.errormessage = "必须输入标题";
ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired.display = "Dynamic";
ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ctl00_ctl00_cphContent_cphDoc_EntryEditor1_valTitleRequired.initialvalue = "";
//]]>
</script> <script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
WebForm_InitCallback();WebForm_AutoFocus('ctl00_ctl00_cphContent_cphDoc_EntryEditor1_txbTitle');//]]>
</script></form>

<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/js/footer.php"></script>
</body>
</html>
